package com.local.model;

import java.util.ArrayList;
import java.util.List;

public class LocalEquipmentExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public LocalEquipmentExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andEquipmentUuidIsNull() {
            addCriterion("equipment_uuid is null");
            return (Criteria) this;
        }

        public Criteria andEquipmentUuidIsNotNull() {
            addCriterion("equipment_uuid is not null");
            return (Criteria) this;
        }

        public Criteria andEquipmentUuidEqualTo(String value) {
            addCriterion("equipment_uuid =", value, "equipmentUuid");
            return (Criteria) this;
        }

        public Criteria andEquipmentUuidNotEqualTo(String value) {
            addCriterion("equipment_uuid <>", value, "equipmentUuid");
            return (Criteria) this;
        }

        public Criteria andEquipmentUuidGreaterThan(String value) {
            addCriterion("equipment_uuid >", value, "equipmentUuid");
            return (Criteria) this;
        }

        public Criteria andEquipmentUuidGreaterThanOrEqualTo(String value) {
            addCriterion("equipment_uuid >=", value, "equipmentUuid");
            return (Criteria) this;
        }

        public Criteria andEquipmentUuidLessThan(String value) {
            addCriterion("equipment_uuid <", value, "equipmentUuid");
            return (Criteria) this;
        }

        public Criteria andEquipmentUuidLessThanOrEqualTo(String value) {
            addCriterion("equipment_uuid <=", value, "equipmentUuid");
            return (Criteria) this;
        }

        public Criteria andEquipmentUuidLike(String value) {
            addCriterion("equipment_uuid like", value, "equipmentUuid");
            return (Criteria) this;
        }

        public Criteria andEquipmentUuidNotLike(String value) {
            addCriterion("equipment_uuid not like", value, "equipmentUuid");
            return (Criteria) this;
        }

        public Criteria andEquipmentUuidIn(List<String> values) {
            addCriterion("equipment_uuid in", values, "equipmentUuid");
            return (Criteria) this;
        }

        public Criteria andEquipmentUuidNotIn(List<String> values) {
            addCriterion("equipment_uuid not in", values, "equipmentUuid");
            return (Criteria) this;
        }

        public Criteria andEquipmentUuidBetween(String value1, String value2) {
            addCriterion("equipment_uuid between", value1, value2, "equipmentUuid");
            return (Criteria) this;
        }

        public Criteria andEquipmentUuidNotBetween(String value1, String value2) {
            addCriterion("equipment_uuid not between", value1, value2, "equipmentUuid");
            return (Criteria) this;
        }

        public Criteria andExchangeNoIsNull() {
            addCriterion("exchange_no is null");
            return (Criteria) this;
        }

        public Criteria andExchangeNoIsNotNull() {
            addCriterion("exchange_no is not null");
            return (Criteria) this;
        }

        public Criteria andExchangeNoEqualTo(String value) {
            addCriterion("exchange_no =", value, "exchangeNo");
            return (Criteria) this;
        }

        public Criteria andExchangeNoNotEqualTo(String value) {
            addCriterion("exchange_no <>", value, "exchangeNo");
            return (Criteria) this;
        }

        public Criteria andExchangeNoGreaterThan(String value) {
            addCriterion("exchange_no >", value, "exchangeNo");
            return (Criteria) this;
        }

        public Criteria andExchangeNoGreaterThanOrEqualTo(String value) {
            addCriterion("exchange_no >=", value, "exchangeNo");
            return (Criteria) this;
        }

        public Criteria andExchangeNoLessThan(String value) {
            addCriterion("exchange_no <", value, "exchangeNo");
            return (Criteria) this;
        }

        public Criteria andExchangeNoLessThanOrEqualTo(String value) {
            addCriterion("exchange_no <=", value, "exchangeNo");
            return (Criteria) this;
        }

        public Criteria andExchangeNoLike(String value) {
            addCriterion("exchange_no like", value, "exchangeNo");
            return (Criteria) this;
        }

        public Criteria andExchangeNoNotLike(String value) {
            addCriterion("exchange_no not like", value, "exchangeNo");
            return (Criteria) this;
        }

        public Criteria andExchangeNoIn(List<String> values) {
            addCriterion("exchange_no in", values, "exchangeNo");
            return (Criteria) this;
        }

        public Criteria andExchangeNoNotIn(List<String> values) {
            addCriterion("exchange_no not in", values, "exchangeNo");
            return (Criteria) this;
        }

        public Criteria andExchangeNoBetween(String value1, String value2) {
            addCriterion("exchange_no between", value1, value2, "exchangeNo");
            return (Criteria) this;
        }

        public Criteria andExchangeNoNotBetween(String value1, String value2) {
            addCriterion("exchange_no not between", value1, value2, "exchangeNo");
            return (Criteria) this;
        }

        public Criteria andCameraNoIsNull() {
            addCriterion("camera_no is null");
            return (Criteria) this;
        }

        public Criteria andCameraNoIsNotNull() {
            addCriterion("camera_no is not null");
            return (Criteria) this;
        }

        public Criteria andCameraNoEqualTo(String value) {
            addCriterion("camera_no =", value, "cameraNo");
            return (Criteria) this;
        }

        public Criteria andCameraNoNotEqualTo(String value) {
            addCriterion("camera_no <>", value, "cameraNo");
            return (Criteria) this;
        }

        public Criteria andCameraNoGreaterThan(String value) {
            addCriterion("camera_no >", value, "cameraNo");
            return (Criteria) this;
        }

        public Criteria andCameraNoGreaterThanOrEqualTo(String value) {
            addCriterion("camera_no >=", value, "cameraNo");
            return (Criteria) this;
        }

        public Criteria andCameraNoLessThan(String value) {
            addCriterion("camera_no <", value, "cameraNo");
            return (Criteria) this;
        }

        public Criteria andCameraNoLessThanOrEqualTo(String value) {
            addCriterion("camera_no <=", value, "cameraNo");
            return (Criteria) this;
        }

        public Criteria andCameraNoLike(String value) {
            addCriterion("camera_no like", value, "cameraNo");
            return (Criteria) this;
        }

        public Criteria andCameraNoNotLike(String value) {
            addCriterion("camera_no not like", value, "cameraNo");
            return (Criteria) this;
        }

        public Criteria andCameraNoIn(List<String> values) {
            addCriterion("camera_no in", values, "cameraNo");
            return (Criteria) this;
        }

        public Criteria andCameraNoNotIn(List<String> values) {
            addCriterion("camera_no not in", values, "cameraNo");
            return (Criteria) this;
        }

        public Criteria andCameraNoBetween(String value1, String value2) {
            addCriterion("camera_no between", value1, value2, "cameraNo");
            return (Criteria) this;
        }

        public Criteria andCameraNoNotBetween(String value1, String value2) {
            addCriterion("camera_no not between", value1, value2, "cameraNo");
            return (Criteria) this;
        }

        public Criteria andIntersectionNameIsNull() {
            addCriterion("intersection_name is null");
            return (Criteria) this;
        }

        public Criteria andIntersectionNameIsNotNull() {
            addCriterion("intersection_name is not null");
            return (Criteria) this;
        }

        public Criteria andIntersectionNameEqualTo(String value) {
            addCriterion("intersection_name =", value, "intersectionName");
            return (Criteria) this;
        }

        public Criteria andIntersectionNameNotEqualTo(String value) {
            addCriterion("intersection_name <>", value, "intersectionName");
            return (Criteria) this;
        }

        public Criteria andIntersectionNameGreaterThan(String value) {
            addCriterion("intersection_name >", value, "intersectionName");
            return (Criteria) this;
        }

        public Criteria andIntersectionNameGreaterThanOrEqualTo(String value) {
            addCriterion("intersection_name >=", value, "intersectionName");
            return (Criteria) this;
        }

        public Criteria andIntersectionNameLessThan(String value) {
            addCriterion("intersection_name <", value, "intersectionName");
            return (Criteria) this;
        }

        public Criteria andIntersectionNameLessThanOrEqualTo(String value) {
            addCriterion("intersection_name <=", value, "intersectionName");
            return (Criteria) this;
        }

        public Criteria andIntersectionNameLike(String value) {
            addCriterion("intersection_name like", value, "intersectionName");
            return (Criteria) this;
        }

        public Criteria andIntersectionNameNotLike(String value) {
            addCriterion("intersection_name not like", value, "intersectionName");
            return (Criteria) this;
        }

        public Criteria andIntersectionNameIn(List<String> values) {
            addCriterion("intersection_name in", values, "intersectionName");
            return (Criteria) this;
        }

        public Criteria andIntersectionNameNotIn(List<String> values) {
            addCriterion("intersection_name not in", values, "intersectionName");
            return (Criteria) this;
        }

        public Criteria andIntersectionNameBetween(String value1, String value2) {
            addCriterion("intersection_name between", value1, value2, "intersectionName");
            return (Criteria) this;
        }

        public Criteria andIntersectionNameNotBetween(String value1, String value2) {
            addCriterion("intersection_name not between", value1, value2, "intersectionName");
            return (Criteria) this;
        }

        public Criteria andInstallPositionIsNull() {
            addCriterion("install_position is null");
            return (Criteria) this;
        }

        public Criteria andInstallPositionIsNotNull() {
            addCriterion("install_position is not null");
            return (Criteria) this;
        }

        public Criteria andInstallPositionEqualTo(String value) {
            addCriterion("install_position =", value, "installPosition");
            return (Criteria) this;
        }

        public Criteria andInstallPositionNotEqualTo(String value) {
            addCriterion("install_position <>", value, "installPosition");
            return (Criteria) this;
        }

        public Criteria andInstallPositionGreaterThan(String value) {
            addCriterion("install_position >", value, "installPosition");
            return (Criteria) this;
        }

        public Criteria andInstallPositionGreaterThanOrEqualTo(String value) {
            addCriterion("install_position >=", value, "installPosition");
            return (Criteria) this;
        }

        public Criteria andInstallPositionLessThan(String value) {
            addCriterion("install_position <", value, "installPosition");
            return (Criteria) this;
        }

        public Criteria andInstallPositionLessThanOrEqualTo(String value) {
            addCriterion("install_position <=", value, "installPosition");
            return (Criteria) this;
        }

        public Criteria andInstallPositionLike(String value) {
            addCriterion("install_position like", value, "installPosition");
            return (Criteria) this;
        }

        public Criteria andInstallPositionNotLike(String value) {
            addCriterion("install_position not like", value, "installPosition");
            return (Criteria) this;
        }

        public Criteria andInstallPositionIn(List<String> values) {
            addCriterion("install_position in", values, "installPosition");
            return (Criteria) this;
        }

        public Criteria andInstallPositionNotIn(List<String> values) {
            addCriterion("install_position not in", values, "installPosition");
            return (Criteria) this;
        }

        public Criteria andInstallPositionBetween(String value1, String value2) {
            addCriterion("install_position between", value1, value2, "installPosition");
            return (Criteria) this;
        }

        public Criteria andInstallPositionNotBetween(String value1, String value2) {
            addCriterion("install_position not between", value1, value2, "installPosition");
            return (Criteria) this;
        }

        public Criteria andInstallEffectIsNull() {
            addCriterion("install_effect is null");
            return (Criteria) this;
        }

        public Criteria andInstallEffectIsNotNull() {
            addCriterion("install_effect is not null");
            return (Criteria) this;
        }

        public Criteria andInstallEffectEqualTo(String value) {
            addCriterion("install_effect =", value, "installEffect");
            return (Criteria) this;
        }

        public Criteria andInstallEffectNotEqualTo(String value) {
            addCriterion("install_effect <>", value, "installEffect");
            return (Criteria) this;
        }

        public Criteria andInstallEffectGreaterThan(String value) {
            addCriterion("install_effect >", value, "installEffect");
            return (Criteria) this;
        }

        public Criteria andInstallEffectGreaterThanOrEqualTo(String value) {
            addCriterion("install_effect >=", value, "installEffect");
            return (Criteria) this;
        }

        public Criteria andInstallEffectLessThan(String value) {
            addCriterion("install_effect <", value, "installEffect");
            return (Criteria) this;
        }

        public Criteria andInstallEffectLessThanOrEqualTo(String value) {
            addCriterion("install_effect <=", value, "installEffect");
            return (Criteria) this;
        }

        public Criteria andInstallEffectLike(String value) {
            addCriterion("install_effect like", value, "installEffect");
            return (Criteria) this;
        }

        public Criteria andInstallEffectNotLike(String value) {
            addCriterion("install_effect not like", value, "installEffect");
            return (Criteria) this;
        }

        public Criteria andInstallEffectIn(List<String> values) {
            addCriterion("install_effect in", values, "installEffect");
            return (Criteria) this;
        }

        public Criteria andInstallEffectNotIn(List<String> values) {
            addCriterion("install_effect not in", values, "installEffect");
            return (Criteria) this;
        }

        public Criteria andInstallEffectBetween(String value1, String value2) {
            addCriterion("install_effect between", value1, value2, "installEffect");
            return (Criteria) this;
        }

        public Criteria andInstallEffectNotBetween(String value1, String value2) {
            addCriterion("install_effect not between", value1, value2, "installEffect");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Byte value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Byte value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Byte value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Byte value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Byte value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Byte value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Byte> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Byte> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Byte value1, Byte value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Byte value1, Byte value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStationUuidIsNull() {
            addCriterion("station_uuid is null");
            return (Criteria) this;
        }

        public Criteria andStationUuidIsNotNull() {
            addCriterion("station_uuid is not null");
            return (Criteria) this;
        }

        public Criteria andStationUuidEqualTo(String value) {
            addCriterion("station_uuid =", value, "stationUuid");
            return (Criteria) this;
        }

        public Criteria andStationUuidNotEqualTo(String value) {
            addCriterion("station_uuid <>", value, "stationUuid");
            return (Criteria) this;
        }

        public Criteria andStationUuidGreaterThan(String value) {
            addCriterion("station_uuid >", value, "stationUuid");
            return (Criteria) this;
        }

        public Criteria andStationUuidGreaterThanOrEqualTo(String value) {
            addCriterion("station_uuid >=", value, "stationUuid");
            return (Criteria) this;
        }

        public Criteria andStationUuidLessThan(String value) {
            addCriterion("station_uuid <", value, "stationUuid");
            return (Criteria) this;
        }

        public Criteria andStationUuidLessThanOrEqualTo(String value) {
            addCriterion("station_uuid <=", value, "stationUuid");
            return (Criteria) this;
        }

        public Criteria andStationUuidLike(String value) {
            addCriterion("station_uuid like", value, "stationUuid");
            return (Criteria) this;
        }

        public Criteria andStationUuidNotLike(String value) {
            addCriterion("station_uuid not like", value, "stationUuid");
            return (Criteria) this;
        }

        public Criteria andStationUuidIn(List<String> values) {
            addCriterion("station_uuid in", values, "stationUuid");
            return (Criteria) this;
        }

        public Criteria andStationUuidNotIn(List<String> values) {
            addCriterion("station_uuid not in", values, "stationUuid");
            return (Criteria) this;
        }

        public Criteria andStationUuidBetween(String value1, String value2) {
            addCriterion("station_uuid between", value1, value2, "stationUuid");
            return (Criteria) this;
        }

        public Criteria andStationUuidNotBetween(String value1, String value2) {
            addCriterion("station_uuid not between", value1, value2, "stationUuid");
            return (Criteria) this;
        }

        public Criteria andCameraIpIsNull() {
            addCriterion("camera_ip is null");
            return (Criteria) this;
        }

        public Criteria andCameraIpIsNotNull() {
            addCriterion("camera_ip is not null");
            return (Criteria) this;
        }

        public Criteria andCameraIpEqualTo(String value) {
            addCriterion("camera_ip =", value, "cameraIp");
            return (Criteria) this;
        }

        public Criteria andCameraIpNotEqualTo(String value) {
            addCriterion("camera_ip <>", value, "cameraIp");
            return (Criteria) this;
        }

        public Criteria andCameraIpGreaterThan(String value) {
            addCriterion("camera_ip >", value, "cameraIp");
            return (Criteria) this;
        }

        public Criteria andCameraIpGreaterThanOrEqualTo(String value) {
            addCriterion("camera_ip >=", value, "cameraIp");
            return (Criteria) this;
        }

        public Criteria andCameraIpLessThan(String value) {
            addCriterion("camera_ip <", value, "cameraIp");
            return (Criteria) this;
        }

        public Criteria andCameraIpLessThanOrEqualTo(String value) {
            addCriterion("camera_ip <=", value, "cameraIp");
            return (Criteria) this;
        }

        public Criteria andCameraIpLike(String value) {
            addCriterion("camera_ip like", value, "cameraIp");
            return (Criteria) this;
        }

        public Criteria andCameraIpNotLike(String value) {
            addCriterion("camera_ip not like", value, "cameraIp");
            return (Criteria) this;
        }

        public Criteria andCameraIpIn(List<String> values) {
            addCriterion("camera_ip in", values, "cameraIp");
            return (Criteria) this;
        }

        public Criteria andCameraIpNotIn(List<String> values) {
            addCriterion("camera_ip not in", values, "cameraIp");
            return (Criteria) this;
        }

        public Criteria andCameraIpBetween(String value1, String value2) {
            addCriterion("camera_ip between", value1, value2, "cameraIp");
            return (Criteria) this;
        }

        public Criteria andCameraIpNotBetween(String value1, String value2) {
            addCriterion("camera_ip not between", value1, value2, "cameraIp");
            return (Criteria) this;
        }

        public Criteria andAttr1IsNull() {
            addCriterion("attr_1 is null");
            return (Criteria) this;
        }

        public Criteria andAttr1IsNotNull() {
            addCriterion("attr_1 is not null");
            return (Criteria) this;
        }

        public Criteria andAttr1EqualTo(String value) {
            addCriterion("attr_1 =", value, "attr1");
            return (Criteria) this;
        }

        public Criteria andAttr1NotEqualTo(String value) {
            addCriterion("attr_1 <>", value, "attr1");
            return (Criteria) this;
        }

        public Criteria andAttr1GreaterThan(String value) {
            addCriterion("attr_1 >", value, "attr1");
            return (Criteria) this;
        }

        public Criteria andAttr1GreaterThanOrEqualTo(String value) {
            addCriterion("attr_1 >=", value, "attr1");
            return (Criteria) this;
        }

        public Criteria andAttr1LessThan(String value) {
            addCriterion("attr_1 <", value, "attr1");
            return (Criteria) this;
        }

        public Criteria andAttr1LessThanOrEqualTo(String value) {
            addCriterion("attr_1 <=", value, "attr1");
            return (Criteria) this;
        }

        public Criteria andAttr1Like(String value) {
            addCriterion("attr_1 like", value, "attr1");
            return (Criteria) this;
        }

        public Criteria andAttr1NotLike(String value) {
            addCriterion("attr_1 not like", value, "attr1");
            return (Criteria) this;
        }

        public Criteria andAttr1In(List<String> values) {
            addCriterion("attr_1 in", values, "attr1");
            return (Criteria) this;
        }

        public Criteria andAttr1NotIn(List<String> values) {
            addCriterion("attr_1 not in", values, "attr1");
            return (Criteria) this;
        }

        public Criteria andAttr1Between(String value1, String value2) {
            addCriterion("attr_1 between", value1, value2, "attr1");
            return (Criteria) this;
        }

        public Criteria andAttr1NotBetween(String value1, String value2) {
            addCriterion("attr_1 not between", value1, value2, "attr1");
            return (Criteria) this;
        }

        public Criteria andAttr2IsNull() {
            addCriterion("attr_2 is null");
            return (Criteria) this;
        }

        public Criteria andAttr2IsNotNull() {
            addCriterion("attr_2 is not null");
            return (Criteria) this;
        }

        public Criteria andAttr2EqualTo(String value) {
            addCriterion("attr_2 =", value, "attr2");
            return (Criteria) this;
        }

        public Criteria andAttr2NotEqualTo(String value) {
            addCriterion("attr_2 <>", value, "attr2");
            return (Criteria) this;
        }

        public Criteria andAttr2GreaterThan(String value) {
            addCriterion("attr_2 >", value, "attr2");
            return (Criteria) this;
        }

        public Criteria andAttr2GreaterThanOrEqualTo(String value) {
            addCriterion("attr_2 >=", value, "attr2");
            return (Criteria) this;
        }

        public Criteria andAttr2LessThan(String value) {
            addCriterion("attr_2 <", value, "attr2");
            return (Criteria) this;
        }

        public Criteria andAttr2LessThanOrEqualTo(String value) {
            addCriterion("attr_2 <=", value, "attr2");
            return (Criteria) this;
        }

        public Criteria andAttr2Like(String value) {
            addCriterion("attr_2 like", value, "attr2");
            return (Criteria) this;
        }

        public Criteria andAttr2NotLike(String value) {
            addCriterion("attr_2 not like", value, "attr2");
            return (Criteria) this;
        }

        public Criteria andAttr2In(List<String> values) {
            addCriterion("attr_2 in", values, "attr2");
            return (Criteria) this;
        }

        public Criteria andAttr2NotIn(List<String> values) {
            addCriterion("attr_2 not in", values, "attr2");
            return (Criteria) this;
        }

        public Criteria andAttr2Between(String value1, String value2) {
            addCriterion("attr_2 between", value1, value2, "attr2");
            return (Criteria) this;
        }

        public Criteria andAttr2NotBetween(String value1, String value2) {
            addCriterion("attr_2 not between", value1, value2, "attr2");
            return (Criteria) this;
        }

        public Criteria andAttr3IsNull() {
            addCriterion("attr_3 is null");
            return (Criteria) this;
        }

        public Criteria andAttr3IsNotNull() {
            addCriterion("attr_3 is not null");
            return (Criteria) this;
        }

        public Criteria andAttr3EqualTo(String value) {
            addCriterion("attr_3 =", value, "attr3");
            return (Criteria) this;
        }

        public Criteria andAttr3NotEqualTo(String value) {
            addCriterion("attr_3 <>", value, "attr3");
            return (Criteria) this;
        }

        public Criteria andAttr3GreaterThan(String value) {
            addCriterion("attr_3 >", value, "attr3");
            return (Criteria) this;
        }

        public Criteria andAttr3GreaterThanOrEqualTo(String value) {
            addCriterion("attr_3 >=", value, "attr3");
            return (Criteria) this;
        }

        public Criteria andAttr3LessThan(String value) {
            addCriterion("attr_3 <", value, "attr3");
            return (Criteria) this;
        }

        public Criteria andAttr3LessThanOrEqualTo(String value) {
            addCriterion("attr_3 <=", value, "attr3");
            return (Criteria) this;
        }

        public Criteria andAttr3Like(String value) {
            addCriterion("attr_3 like", value, "attr3");
            return (Criteria) this;
        }

        public Criteria andAttr3NotLike(String value) {
            addCriterion("attr_3 not like", value, "attr3");
            return (Criteria) this;
        }

        public Criteria andAttr3In(List<String> values) {
            addCriterion("attr_3 in", values, "attr3");
            return (Criteria) this;
        }

        public Criteria andAttr3NotIn(List<String> values) {
            addCriterion("attr_3 not in", values, "attr3");
            return (Criteria) this;
        }

        public Criteria andAttr3Between(String value1, String value2) {
            addCriterion("attr_3 between", value1, value2, "attr3");
            return (Criteria) this;
        }

        public Criteria andAttr3NotBetween(String value1, String value2) {
            addCriterion("attr_3 not between", value1, value2, "attr3");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}